FROM ubuntu
MAINTAINER fengzhihao 1209103220@qq.com

RUN apt-get update

RUN apt-get install wget -y

RUN apt-get install openjdk-8-jdk -y

RUN mkdir /usr/kafka

WORKDIR /usr/kafka

RUN wget https://mirrors.tuna.tsinghua.edu.cn/apache/kafka/2.3.0/kafka_2.12-2.3.0.tgz

RUN tar -xvzf kafka_2.12-2.3.0.tgz

RUN rm -rf kafka_2.12-2.3.0.tgz

RUN pwd

RUN ls -al

RUN mv ./kafka_2.12-2.3.0/* ./

RUN ls -al

CMD ["/usr/kafka/bin/kafka-server-start.sh", "/usr/kafka/config/server.properties"]



